﻿using System;
using System.Collections.Generic;
using System.Text;

public class Wheel
{
    protected string m_ManufacturerName = string.Empty;
    protected float m_CurrentAirPressure = 0f;

    public float CurrentAirPressure
    {
        get { return m_CurrentAirPressure; }
        set { m_CurrentAirPressure = value; }
    }

    private float m_MaxAirPressure = 0f;

    public float MaxAirPressure
    {
        get { return m_MaxAirPressure; }
        set { m_MaxAirPressure = value; }
    }

    protected ePressureType? m_PressureType = null;

    public enum ePressureType
    {
        Motorcycle = 32,
        Car = 30,
        Truck = 27
    }

    public Wheel(string i_ManufacturerName, ePressureType i_PressureType)
    {
        m_MaxAirPressure = m_CurrentAirPressure = (float)i_PressureType;
        m_ManufacturerName = i_ManufacturerName;
        m_PressureType = i_PressureType;
    }

    public new string ToString()
    {
        return string.Concat("Wheel manufacturer: ", m_ManufacturerName, System.Environment.NewLine, "Wheel current air pressure: ", m_CurrentAirPressure, System.Environment.NewLine);
    }
}
